// 导入vue
import Vue from "vue"
// 导入Vuex
import Vuex from "vuex"
// 导入home模块
import home from "./modules/home"
// 导入search模块
import search from "./modules/search"
// 导入detail模块
import detail from "./modules/detail"
// 导入login模块
import login from "./modules/login"
// 导入trade模块
import trade from "./modules/trade"
// 使用vuex
Vue.use(Vuex)

// 创建store数据
export default new Vuex.Store({
    modules: {
        home,
        search,
        detail,
        login,
        trade
    }
})